{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>文章列表</h5>
        </div>
        <div class="ibox-content">
            <!--搜索框开始-->           
            <div class="row">
                <div class="col-sm-12">   
                <div  class="col-sm-2" style="width: 100px">
                    <div class="input-group" >  
                        <a href="{:url('add')}"><button class="btn btn-outline btn-primary" type="button">添加文章</button></a>
                    </div>
                </div>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th width="3%">ID</th>
                                <th width="15%">标题</th>
                                <th width="15%">操作</th>
                            </tr>
                        </thead>
                        {volist name="_list" id="vo"}
                        <tr class="long-td">
                            <td>{$vo.id}</td>
                            <td>{$vo.title}</td>
                            <td>
                                <a href="{:url('edit',array('id'=>$vo['id']))}" class="btn btn-primary btn-xs btn-outline">
                                    <i class="fa fa-paste"></i>编辑</a>&nbsp;&nbsp;
                                <a href="javascript:;" onclick="del({$vo['id']})" class="btn btn-danger btn-xs btn-outline">
                                    <i class="fa fa-trash-o"></i>删除</a>
                            </td>
                        </tr>
                        {/volist}
                        <tbody id="list-content"></tbody>
                    </table>
                    <div id="AjaxPage" style="text-align:right;"></div>
                    <div style="text-align: right;">
                        共{$_count}条数据&nbsp;<span id="allpage"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script type="text/javascript">
//删除文章
function del(id){
    lunhui.confirm(id,'{:url("del")}');
}
</script>
</body>
</html>